#define _CRT_SECURE_NO_WARNINGS 1

#include "tree.h"

int main1() {
	char a[100];
	scanf("%s", a);
	int i = 0;
	BTNode* root = CreatTree(a, &i);
	InOrder(root);
	printf("\n");
	return 0;
}

void test()
{
	BTNode* root = CreatBinaryTree();

	PrevOrder(root);
	printf("\n");

	InOrder(root);
	printf("\n");

	PostOrder(root);
	printf("\n");

	printf("%d\n", BTSize(root));

	printf("%d\n", BTLevelKSize(root, 4));

	//printf("%d\n",*(BinaryTreeFind(root, 3)));

	LevelOrder(root);
	printf("\n");

	BTDestory(root);
	root = NULL;
}

int main()
{
	//main1();
	test();
	return 0;
}

